package com.example.zhilongzhang.constructionpayapp.dialog;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.animation.AnimationUtils;
import android.widget.ImageView;

import com.example.zhilongzhang.constructionpayapp.R;

public class WaitDialog extends Dialog {
    Context mContext;
    public WaitDialog(Context context) {
        super(context,R.style.Dialog_normal);
        this.mContext=context;
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_wait);
        ImageView loadingImg = findViewById(R.id.loading_img);
        // 加载动画
        loadingImg.startAnimation(AnimationUtils.loadAnimation(mContext, R.anim.loading_anim));
    }
}
